function RX(e) {
    var t = $(".blog-search.clearfix,.label-archive,#toggle-container"),
        n = $(".blog-search.clearfix,.label-archive,#toggle-container"),
        r = $("#archive-flat"),
        i = $(".ntek"),
        s = $(".ntok");
    i.click(function () {
        s.removeClass("active");
        r.show();
        n.hide();
        $(this).addClass("active")
    });
    s.click(function () {
        i.removeClass("active");
        r.hide();
        t.show();
        $(this).addClass("active")
    });
    var o = document.getElementById(TC_TX.x2),
        u = o.getElementsByClassName("wrapper-toc"),
        a = o.getElementsByClassName("toc-tabs")[0],
        f = a.getElementsByClassName("tooltip");
    for (var l = 0; l < u.length; l++) {
        u[l].style.display = "none";
        u[parseInt(e, 10)].style.display = "block"
    }
    for (var c = 0; c < f.length; c++) {
        f[c].className = "labels";
        f[parseInt(e, 10)].className = "labels"
    }
}
function RB(e) {
    var t = parseInt(e.feed.openSearch$totalResults.$t, 10),
        n = TC_TX,
        r = e.feed.entry,
        i = e.feed.category,
        s = "",
        o = [];
    for (var u = 0; u < (n.x15 === true ? 5 : n.x15); u++) {
        if (u == r.length) break;
        r[u].title.$t = r[u].title.$t + (n.x15 !== false ? n.x16 : "")
    }
    r = n.x14 ? r.sort(function (e, t) {
        return e.title.$t.localeCompare(t.title.$t)
    }) : r;
    i = n.x14 ? i.sort(function (e, t) {
        return e.term.localeCompare(t.term)
    }) : i;
    s = '<ul class="toc-tabs">';
    for (var a = 0, f = i.length; a < f; a++) {
        s += '<li class="' + i[a].term + '"><a class="tooltip" title="' + i[a].term + '" href="javascript:RX(' + a + ');">' + i[a].term + '</a></li>'
    }
    s += "</ul>";
    s += '<div class="toc-content">';
    for (var l = 0, c = i.length; l < c; l++) {
        s += '<div class="wrapper-toc" ';
        s += l != n.x3 - 1 ? ' style="display:none;"' : "";
        s += ">";
        for (var h = 0; h < t; h++) {
            if (h == r.length) break;
            var p, d = r[h],
                v = d.published.$t,
                m = n.x10,
                g = d.title.$t,
                y = "media$thumbnail" in d && n.x7 === true ? '<img class="thumbnail" style="width:' + n.x8 + "px;height:" + n.x8 + 'px;" alt="" src="' + d.media$thumbnail.url.replace(/\/s72(\-c)?\//, "/s" + n.x8 + "-c/") + '"/>' : '<img class="thumbnail" style="width:' + n.x8 + "px;height:" + n.x8 + 'px;" alt="" src="' + n.x9.replace(/\/s72(\-c)?\//, "/w" + n.x8 + "-c/") + '"/>',
                b = d.category ? d.category : [],
                w = n.x4 ? '<time datetime="' + v + '" title="' + v + '">' + v.substring(8, 10) + " " + m[parseInt(v.substring(5, 7), 10) - 1] + " " + v.substring(0, 4) + "</time>" : "";
            for (var E = 0; E < d.link.length; E++) {
                if (d.link[E].rel == "alternate") {
                    p = d.link[E].href;
                    break
                }
            }
            for (var S = 0, x = b.length; S < x; S++) {
                var T = n.x11 ? ' target="_blank"' : "";
                if (b[S].term == i[l].term) {
                    s += '<div title="' + b[S].term + '"';
                    s += n.x5 ? ' class="item"' : "";
                    s += ">";
                    s += n.x5 ? '<a class="link-inline" href="' + p + '"' + T + "></a>" + y + "" : "";
                    s += '<ul class="bottom"><li><a href="' + p + '"' + T + ">" + g + '</a></li><li><a href="' + p + '"' + T + ">" + w + "</a></li></ul>";
                    s += "</div>"
                }
            }
        }
        s += "</div>"
    }
    s += "</div>";
    s += '<div style="clear:both;"></div>';
    document.getElementById(n.x2).innerHTML = s;
    RX(n.x3 - 1)
}
var TC = {
    x1: "http://www.dhf.web.id",
    x2: "archive-flat",
    x3: 1,
    x4: true,
    x5: true,
    x6: false,
    x7: true,
    x8: 158
};
var TC_TX = {
    x1: "http://www.dhf.web.id",
    x2: "archive-flat",
    x3: 1,
    x4: true,
    x5: true,
    x6: 200,
    x7: true,
    x8: 140,
    x9: "false",
    x10: ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"],
    x11: true,
    x12: 99999,
    x13: 0,
    x14: true,
    x15: false,
    x16: "false"
};
for (var i in TC_TX) {
    TC_TX[i] = typeof TC[i] !== undefined && typeof TC[i] !== "undefined" ? TC[i] : TC_TX[i]
}(function () {
    var e = document.getElementsByTagName("head")[0],
        t = document.createElement("script");
    t.type = "text/javascript";
    t.src = TC_TX.x1 + "/feeds/posts/summary?alt=json-in-script&max-results=" + TC_TX.x12 + "&orderby=published&callback=RB";
    if (TC_TX.x13 !== "onload") {
        setTimeout(function () {
            e.appendChild(t)
        }, TC_TX.x13)
    } else {
        window.onload = function () {
            e.appendChild(t)
        }
    }
})()